package com.hc.model.code04.test6;

/**
 * @version v1.0
 * @ClassName: WeiXinObserver
 * @Description: 具体的观察者模式
 * @Author: HC
 */
public class WeiXinObserver implements Observer{

    private String name;

    public WeiXinObserver(String name) {
        this.name = name;
    }

    @Override
    public void update(String message) {
        System.out.println(name + "-" + message);
    }
}
